home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 June
/
EnigmA AMIGA RUN 19 (1997)(G.R. Edizioni)(IT)[!][issue 1997-06][EAR-CD III].iso
/
shape_files
/
macprint
< prev
next >
Wrap
Text File
|
1997-04-30
|
943b
|
36 lines
; Little CLI script used to send a file from a given Mac
; directory to the parallel port.
;
; $VER: MacPrint 1.0 (30.4.97)
FailAt 21
; Please change these settings according to your needs.
; You should have to change the MAC mountlist path and
; the default directory where PostScript files would go.
Set MacMountList "DEVS:DOSDrivers/MAC"
Set DefaultMacDir "MAC:ToPrinter"
;------ STARTUP ----------------------------------------
; First, we mount the MAC: device if it doesn't
; exists yet.
C:Assign >NIL: MAC: EXISTS
If WARN ; "MAC:" doesn't exist yet.
Mount >NIL: $MacMountList
If FAIL ; Abort if we can't find the
Quit 20 ; mountlist...
Endif
Endif
; Now, pop-up the file requester.
C:RequestFile >ENV:File $DefaultMacDir TITLE "Select a file" POSITIVE "Print"
If NOT WARN ; The user has selected a file
C:Copy $File TO PAR: BUFFER 16384
Endif
UnsetEnv File